Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply new ruff rules #139

Merged
merged 11 commits into from
Nov 23, 2024
Merged

Apply new ruff rules #139

merged 11 commits into from
Nov 23, 2024

Conversation

DimitriPapadopoulos
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

Attention: Patch coverage is 29.62963% with 19 lines in your changes missing coverage. Please review.

Project coverage is 65.10%. Comparing base (6f8173c) to head (d28a5c9).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
nireports/interfaces/reporting/registration.py 0.00% 7 Missing ⚠️
nireports/interfaces/reporting/segmentation.py 0.00% 7 Missing ⚠️
nireports/interfaces/reporting/masks.py 16.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #139      +/-   ##
==========================================
- Coverage   65.12%   65.10%   -0.03%     
==========================================
  Files          25       25              
  Lines        2644     2642       -2     
  Branches      417      415       -2     
==========================================
- Hits         1722     1720       -2     
  Misses        811      811              
  Partials      111      111              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

C409 Unnecessary list comprehension passed to `tuple()` (rewrite as a generator)
C419 Unnecessary list comprehension
UP008 Use `super()` instead of `super(__class__, self)`
RUF022 `__all__` is not sorted
RUF023 `__slots__` is not sorted
PERF401 Use a list comprehension to create a transformed list
FURB188 Prefer `removeprefix` over conditionally replacing with slice.
SIM401 Use `.get()` instead of an `if` block
ISC001 Implicitly concatenated string literals on one line
Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Small suggestion while we're looking at it.

nireports/assembler/report.py Outdated Show resolved Hide resolved
nireports/assembler/report.py Outdated Show resolved Hide resolved
@effigies effigies merged commit d3ef72b into nipreps:main Nov 23, 2024
10 of 12 checks passed
effigies added a commit that referenced this pull request Dec 19, 2024
24.1.0 (December 18, 2024)

New feature release in the 24.1.x series.

This release includes a migration of most if not all reporting
interfaces from NiWorkflows.
This release also supports Python 3.13 and Numpy 2.

* ENH: Finalize migration of reporting interfaces (#71)
* ENH: Allow figures in session folder (#138)
* RF: Replace nireports.data.Loader with acres.Loader (#142)
* STY: Apply new ruff rules (#139)
* MAINT: Add tox.ini, test minimum dependencies (#141)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants